#!/bin/bash
# -*- encoding: utf8 -*-

import base64
from pyDes import *

def OrderCrontall(orderid):
    #初始向量，CBC加密时使用
    Des_Key = 'orderkey'
    k = des(Des_Key, CBC, Des_Key, pad=None, padmode=PAD_PKCS5)
    EncryptStr = k.encrypt(str(orderid))
    return base64.b64encode(EncryptStr)